package com.zhou.spring.test_001;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author zhouyanxiang
 * @create 2020-07-2020/7/13-16:15
 */
public class StartSpring {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        Car car =  ctx.getBean("car",Car.class);
        System.out.println("name: " + car.getName() + "\t" + "price: " + car.getPrice());
    }
}
